/*
    创建服务器的方法
        http.createServer().listen(8080);

        server = new http.Server();
        server.listen(3000);
        通过事件来对求情进行监听
        server.on("request" , (req, res) => {});
*/

const http = require("http");

http.createServer((req, res) => {

}).listen(3000);

let server = new http.Server();
server.listen(3001);

server.on("request" , (req, res) => {

});